package vn.evolus.pencil.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import vn.evolus.pencil.service.UploadDataService;

public class UploadDataServiceImpl implements UploadDataService{
	
	private String uploadFolder;
	
	public static final List<String> zipMineTypes = new ArrayList<String>();
	{
		zipMineTypes.add("application/zip");
		zipMineTypes.add("application/x-zip");
		zipMineTypes.add("application/x-zip-compressed");
		zipMineTypes.add("application/octet-stream");
		zipMineTypes.add("application/x-compress");
		zipMineTypes.add("application/x-compressed");
		zipMineTypes.add("multipart/x-zip");
	}
	
	public UploadDataServiceImpl(String uploadFolder) {
		this.setUploadFolder(uploadFolder);
	}
	
	public void setUploadFolder(String uploadFolder) {
		this.uploadFolder = uploadFolder;
	}

	public String getUploadFolder() {
		return uploadFolder;
	}

	public String uploadFile(MultipartFile file) {
		
		return "";
	}
}
